# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-blinker
_pkgname=blinker
pkgver=1.6.2
pkgrel=1
pkgdesc="Fast, simple object-to-object and broadcast signalling"
url="https://pypi.org/project/blinker"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-gpep517 py3-wheel py3-installer"
checkdepends="py3-pytest py3-pytest-asyncio"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	PYTHONPATH=build/lib pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/blinker*.whl
}

sha512sums="
c84bb955e97e6a13e6fda5f070373736bd1361f40ad9202eeaa300055b163648db381060f6b45fdf405a0bd4ef07b694875735e6f220d51d1b7a5be7efb28f72  blinker-1.6.2.tar.gz
"
